package com.weds.edpf.core.mapper;

import com.weds.core.annotation.MyBatisDao;
import com.weds.edpf.core.entity.NTkqRoomEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author
 * @Description 管理
 * @Date 2020-06-11
 */
@MyBatisDao
public interface NTkqRoomMapper {
    /**
     */
    int deleteByPrimaryKey(Integer depSerial);

    /**
     */
    int insert(NTkqRoomEntity record);

    /**
     */
    int insertBatch(@Param("list") List<NTkqRoomEntity> list);

    /**
     */
    int insertSelective(NTkqRoomEntity record);

    /**
     */
    NTkqRoomEntity selectByPrimaryKey(Integer depSerial);

    /**
     */
    int updateByPrimaryKeySelective(NTkqRoomEntity record);

    /**
     */
    int updateByPrimaryKey(NTkqRoomEntity record);

    /**
     */
    List<NTkqRoomEntity> selectListByEntity(NTkqRoomEntity record);

    /**
     */
    int deleteBatchByKeys(@Param("list") List<NTkqRoomEntity> list);

    /**
     * 统计场所下 会议室和宿舍
     * @param depSerial
     * @return
     */
    int countDepRoom(Integer depSerial);
}